//package com.ly.springsolrtest.springsolr.config;
//
//import org.apache.solr.client.solrj.impl.HttpSolrClient;
//import org.springframework.beans.factory.annotation.Value;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//public class SolrConfig {
//    @Value("${spring.data.solr.host}")
//    private String host;
////    @Value("${spring.data.solr.zk-host}")
////    private String zkHost;
//    @Value("${solr.coreName}")
//   private String  coreName;
//    public String getHost() {
//        return host;
//    }
//
////    public void setHost(String host) {
////        this.host = host;
////    }
////
////    public String getZkHost() {
////        return zkHost;
////    }
////
////    public void setZkHost(String zkHost) {
////        this.zkHost = zkHost;
////    }
//    @Bean
//    public HttpSolrClient solrClient(){
//
//        HttpSolrClient build = new HttpSolrClient.Builder(host+ coreName).build();
//        return build;
//
//    }
//}